package com.launcher.decorator;

import javax.persistence.Entity;

import com.launcher.Rocket;


@Entity
public class Fairring extends RocketDecorator implements IFairring
{
	private int capability = 0;
	
	public Fairring(Rocket decoratedRocket)
	{
		super(decoratedRocket);
	}
	
	public Fairring()
	{
		super(null);
	}
	
	public void setCapability(int capability)
	{
		this.capability = capability;
	}
	
	public int getCapability()
	{
        return capability;
    }
	
	public Fairring clone()
	{
		Fairring fairring = new Fairring(null);
		fairring.setCost(getCost());
		fairring.setMass(getMass());
		fairring.setCapability(getCapability());
		
		return fairring;
	}
}
